package com.hcyy.entity;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.configuration.ConfigurationException;

import com.hcyy.util.PictureUtil;

public class Product extends BaseProperty{
	private String spbh;
	private String shpchd;
	private String pizhwh;
	private String leibie;
	private String dw;
	private String jixing;
	private String chuffl;
	private String cunchtj;
	private String sptm;
	private Double price;
	private Double priceYj;
	private String picture;
	private List<String> pictureList;
	private Integer flbid;
	private String leibie2;
	private String changjia;
	private Integer num;
	private Integer isSpecialarea;
	private List<ProductBal> productBal;
	
	public String getSpbh() {
		return spbh;
	}
	public void setSpbh(String spbh) {
		this.spbh = spbh;
	}
	public String getPizhwh() {
		return pizhwh;
	}
	public void setPizhwh(String pizhwh) {
		this.pizhwh = pizhwh;
	}
	public String getShpchd() {
		return shpchd;
	}
	public void setShpchd(String shpchd) {
		this.shpchd = shpchd;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Double getPriceYj() {
		return priceYj;
	}
	public void setPriceYj(Double priceYj) {
		this.priceYj = priceYj;
	}
	public String getPicture() {
		return picture;
	}
	public void setPicture(String picture) {
		this.picture = picture;
	}
	public String getLeibie() {
		return leibie;
	}
	public void setLeibie(String leibie) {
		this.leibie = leibie;
	}
	public String getDw() {
		return dw;
	}
	public void setDw(String dw) {
		this.dw = dw;
	}
	public String getJixing() {
		return jixing;
	}
	public void setJixing(String jixing) {
		this.jixing = jixing;
	}
	public String getChuffl() {
		return chuffl;
	}
	public void setChuffl(String chuffl) {
		this.chuffl = chuffl;
	}
	public String getCunchtj() {
		return cunchtj;
	}
	public void setCunchtj(String cunchtj) {
		this.cunchtj = cunchtj;
	}
	public String getSptm() {
		return sptm;
	}
	public void setSptm(String sptm) {
		this.sptm = sptm;
	}
	public Integer getFlbid() {
		return flbid;
	}
	public void setFlbid(Integer flbid) {
		this.flbid = flbid;
	}
	public String getLeibie2() {
		return leibie2;
	}
	public void setLeibie2(String leibie2) {
		this.leibie2 = leibie2;
	}
	public String getChangjia() {
		return changjia;
	}
	public void setChangjia(String changjia) {
		this.changjia = changjia;
	}
	public Integer getNum() {
		return num;
	}
	public void setNum(Integer num) {
		this.num = num;
	}
	public Integer getIsSpecialarea() {
		return isSpecialarea;
	}
	public void setIsSpecialarea(Integer isSpecialarea) {
		this.isSpecialarea = isSpecialarea;
	}
	public List<ProductBal> getProductBal() {
		return productBal;
	}
	public void setProductBal(List<ProductBal> productBal) {
		this.productBal = productBal;
	}
	public List<String> getPictureList() {
		List<String> pictureList = new ArrayList<String>();
		try {
			pictureList = PictureUtil.getPictureList(spid,picture);
		} catch (ConfigurationException e) {
			e.printStackTrace();
		}
		return pictureList;
	}
	public void setPictureList(List<String> pictureList) {
		this.pictureList = pictureList;
	}
}
